package com.ztzh.temteam.example.dto;

import lombok.Data;

/**
 * ChatMessage
 *
 * @author yiyong
 *
 **/
public class ResponseMsg {
    private boolean flag;
    private int code;
    private String desc;
    private String sid;

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public boolean success() {
        return code == 0;
    }
}